/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ControlBoxContainer.java
 *
 * Created on 9/10/2009, 12:34:38 PM
 */

package pradoeditor.controlbox;

import com.vlsolutions.swing.docking.DockKey;
import com.vlsolutions.swing.docking.Dockable;
import java.awt.Component;
import javax.swing.JPanel;

/**
 *
 * @author jaimeg
 */
public class ControlBoxContainer extends JPanel implements Dockable
{
    DockKey key = new DockKey("Cuadro de controles");

    /** Creates new form ControlBoxContainer */
    public ControlBoxContainer() {
        initComponents();
    }

    public DockKey getDockKey(){
        return key;
    }

    public Component getComponent(){
        return this;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jXTaskPaneContainer1 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPaneBasic = new org.jdesktop.swingx.JXTaskPane();
        jXTaskPaneValidation = new org.jdesktop.swingx.JXTaskPane();

        jXTaskPaneBasic.setTitle("Controls basic");
        jXTaskPaneContainer1.add(jXTaskPaneBasic);

        jXTaskPaneValidation.setCollapsed(true);
        jXTaskPaneValidation.setTitle("Controls of validation");
        jXTaskPaneContainer1.add(jXTaskPaneValidation);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jXTaskPaneContainer1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jXTaskPaneContainer1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 406, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private org.jdesktop.swingx.JXTaskPane jXTaskPaneBasic;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer1;
    private org.jdesktop.swingx.JXTaskPane jXTaskPaneValidation;
    // End of variables declaration//GEN-END:variables

}
